package com.example.test.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单所含商品表
 * </p>
 *
 * @author dz
 * @since 2022-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_goods")
@Accessors(chain = true)
public class OrderGoods extends Model<OrderGoods> {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;
    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 商品id
     */
    private Long goodId;

    /**
     * 商品名称
     */
    private String goodName;

    /**
     * 商品数量
     */
    private Long goodNum;

    /**
     * 商品单价
     */
    private Double goodSell;

    /**
     * 商品总价
     */
    private Double sumSell;

    /**
     * 是否充足(0-充足 ，1-不足)
     */
    private Boolean isEnough;



}
